import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import Muban from  './js/Muban'
import Create from  './js/Create'
import Zuzhi from   './js/Zuzhi'
import  My from  './js/My'
import  Submit from  './js/Submit'
import  Detail from  './js/Detail'
import  Index from  './js/index'
import  InformationDetail from  './js/InformationDetail'
import  Activity from  './js/Activity'
import 'antd-mobile/dist/antd-mobile.css'
import {BrowserRouter as Router , Route, Switch ,browserHistory} from 'react-router-dom';
import Information from "./js/Information";
import School from "./js/School";
import SchoolDetail from "./js/SchoolDetail";
import  Work from  './js/Work'
import Focus from  './js/Focus'
import  Fans from  './js/Fans'
import Niubi from  './js/Niubi'
import  CreateCollection from  './js/CreateCollection'
import  ShoppingMall from  './js/ShoppingMall'
import  OrganizationCertification from  './js/OrganizationCertification'
import  shoppingDetail from  './js/shoppingDetail'
import Card from  './js/Card'
import  Pubuliu from  './js/pubuliu'
ReactDOM.render(
    <Router history={browserHistory}>
        <div>
            <div >
                <Switch>
                    <Route exact  path="/" component={App} />
                    <Route path='/create' component={Create}></Route>
                    <Route path='/Zuzhi' component={Zuzhi}></Route>
                    <Route path='/My' component={My}></Route>
                    <Route path='/Submit' component={Submit}></Route>
                    <Route path='/Detail/:id' component={Detail}></Route>
                    <Route path='/Index/:id' component={Index}></Route>
                    <Route path='/Information' component={Information} ></Route>
                    <Route path='/InformationDetail/:id' component={InformationDetail} ></Route>
                    <Route path='/Activity/:type' component={Activity} ></Route>
                    <Route path='/School/:id' component={School}></Route>
                    <Route path='/SchoolDetail/:id' component={SchoolDetail}></Route>
                    <Route path='/Work/:type/:id' component={Work}></Route>
                    <Route path='/Focus' component={Focus}></Route>
                    <Route path='/Fans' component={Fans}></Route>
                    <Route path='/Niubi' component={Niubi}></Route>
                    <Route path='/CreateCollection' component={CreateCollection}></Route>
                    <Route path='/OrganizationCertification' component={OrganizationCertification}></Route>
                    <Route path='/ShoppingMall' component={ShoppingMall}></Route>
                    <Route path='/shoppingDetail/:goodsId/:productsId' component={shoppingDetail}></Route>
                    <Route path='/Card' component={Card}></Route>
                    <Route path='/Pubuliu' component={Pubuliu}></Route>
                    <Route   path="/Muban" component={Muban} />
                </Switch>
            </div>
        </div>
    </Router>,
    document.getElementById('root')
);
